package com.bw.module_mine.model.api

import com.bw.lib_net.BaseResponse
import com.bw.module_mine.model.entity.AccountEntity
import com.bw.module_mine.model.entity.LoginEntity
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface MineApi {

    @POST("/user/login")
    suspend fun login(@Query("username")username:String,@Query("password")password:String):BaseResponse<LoginEntity>

    @POST("/user/register")
    suspend fun register(@Query("username")username:String,@Query("password")password:String):BaseResponse<LoginEntity>

    @GET("/account/findAccountById")
    suspend fun getAccount(@Query("id")userid:Int): BaseResponse<AccountEntity>
}